package com.hp.Model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data @NoArgsConstructor
@AllArgsConstructor  @Builder
public class Assignment {
    private Long id;
    private Long courseId;             // FK -> course.id
    private Long createdBy;            // FK -> user.id
    private String title;
    private String description;        // TEXT
    private Date dueAt;           // 可为空
    private Integer maxPoints;         // 默认100
    private Boolean allowResubmit;     // 默认1
    private Date createdAt;
    private Date updatedAt;
}
